﻿@{
    ViewData["Title"] = "OmniPay.Pay";
}

<div id="wrapper">

<div id="header">
    <h2>@ViewData["Title"]</h2>
</div>

<div id="tabs-api">
<ul>
    <li>
        <a href="#tabs-api-wechatpay">微信支付</a>
    </li>
    <li>
        <a href="#tabs-api-alipay">支付宝支付</a>
    </li>
</ul>
<div id="tabs-api-wechatpay">
    <div id="tabs-purchase-wechatpay">
        <ul>
            <li>
                <a href="#tabs-purchase-1">扫码支付</a>
            </li>
            <li>
                <a href="#tabs-purchase-2">WAP支付</a>
            </li>
            <li>
                <a href="#tabs-purchase-3">APP支付</a>
            </li>
            <li>
                <a href="#tabs-purchase-4">公众号支付</a>
            </li>
            <li>
                <a href="#tabs-purchase-5">小程序支付</a>
            </li>
            <li>
                <a href="#tabs-purchase-6">查询订单</a>
            </li>
            <li>
                <a href="#tabs-purchase-7">关闭订单</a>
            </li>
        </ul>

        <div id="tabs-purchase-1">
            <form class="api-form" asp-controller="WeChatPay" asp-action="ScanPay" method="post" target="_blank">
                <p>
                    <label>订单号：</label>
                    <input type="text" name="out_trade_no" value="@DateTime.Now.ToString("yyyyMMddHHmmssfff")">
                </p>
                <p>
                    <label>订单描述：</label>
                    <input type="text" name="body" value="微信扫码支付测试">
                </p>
                <p>
                    <label>金额：</label>
                    <input type="text" name="total_amount" value="1" title="单位为分。">
                </p>
                <p>
                    <label>&nbsp;</label>
                    <input type="submit" class="button" value="提交">
                </p>
            </form>
            <hr/>
            <p class="faq">
                <a href="https://pay.weixin.qq.com/wiki/doc/api/native.php?chapter=9_1" target="_blank">* 查看接口 请求参数、响应参数</a>
            </p>
        </div>
        <div id="tabs-purchase-2">
            <form class="api-form" asp-controller="WeChatPay" asp-action="WapPay" method="post" target="_blank">
                <p>
                    <label>订单号：</label>
                    <input type="text" name="out_trade_no" value="@DateTime.Now.ToString("yyyyMMddHHmmssfff")">
                </p>
                <p>
                    <label>订单描述：</label>
                    <input type="text" name="body" value="Wap支付测试">
                </p>
                <p>
                    <label>金额：</label>
                    <input type="text" name="total_amount" value="1" title="单位为分。">
                </p>
                <p>
                    <label>&nbsp;</label>
                    <input type="submit" class="button" value="提交">
                </p>
            </form>
            <hr/>
            <p class="faq">
                <a href="https://pay.weixin.qq.com/wiki/doc/api/native.php?chapter=9_1" target="_blank">* 查看接口 请求参数、响应参数</a>
            </p>
        </div>
        <div id="tabs-purchase-3">
            <form class="api-form" asp-controller="WeChatPay" asp-action="AppPay" method="post" target="_blank">
                <p>
                    <label>订单号：</label>
                    <input type="text" name="out_trade_no" value="@DateTime.Now.ToString("yyyyMMddHHmmssfff")">
                </p>
                <p>
                    <label>订单描述：</label>
                    <input type="text" name="body" value="APP支付测试">
                </p>
                <p>
                    <label>金额：</label>
                    <input type="text" name="total_amount" value="1" title="单位为分。">
                </p>
                <p>
                    <label>&nbsp;</label>
                    <input type="submit" class="button" value="提交">
                </p>
            </form>
            <hr/>
            <p class="faq">
                <a href="https://pay.weixin.qq.com/wiki/doc/api/native.php?chapter=9_1" target="_blank">* 查看接口 请求参数、响应参数</a>
            </p>
        </div>
        <div id="tabs-purchase-4">
            <form class="api-form" asp-controller="WeChatPay" asp-action="PublicPay" method="post" target="_blank">
                <p>
                    <label>订单号：</label>
                    <input type="text" name="OutTradeNo" value="@DateTime.Now.ToString("yyyyMMddHHmmssfff")">
                </p>
                <p>
                    <label>订单描述：</label>
                    <input type="text" name="body" value="公众号支付测试">
                </p>
                <p>
                    <label>用户标识：</label>
                    <input type="text" name="OpenId" value="">
                </p>
                <p>
                    <label>金额：</label>
                    <input type="text" name="TotalAmount" value="1" title="单位为分。">
                </p>
                <p>
                    <label>&nbsp;</label>
                    <input type="submit" class="button" value="提交">
                </p>
            </form>
            <hr/>
            <p class="faq">
                <a href="https://pay.weixin.qq.com/wiki/doc/api/native.php?chapter=9_1" target="_blank">* 查看接口 请求参数、响应参数</a>
            </p>
        </div>
        <div id="tabs-purchase-5">
            <form class="api-form" asp-controller="WeChatPay" asp-action="AppletPay" method="post" target="_blank">
                <p>
                    <label>订单号：</label>
                    <input type="text" name="OutTradeNo" value="@DateTime.Now.ToString("yyyyMMddHHmmssfff")">
                </p>
                <p>
                    <label>订单描述：</label>
                    <input type="text" name="body" value="小程序支付测试">
                </p>
                <p>
                    <label>用户标识：</label>
                    <input type="text" name="OpenId" value="">
                </p>
                <p>
                    <label>金额：</label>
                    <input type="text" name="TotalAmount" value="1" title="单位为分。">
                </p>
                <p>
                    <label>&nbsp;</label>
                    <input type="submit" class="button" value="提交">
                </p>
            </form>
            <hr/>
            <p class="faq">
                <a href="https://pay.weixin.qq.com/wiki/doc/api/native.php?chapter=9_1" target="_blank">* 查看接口 请求参数、响应参数</a>
            </p>
        </div>
        <div id="tabs-purchase-6">
            <form class="api-form" asp-controller="WeChatPay" asp-action="Query" method="post" target="_blank">
                <p>
                    <label>微信订单号：</label>
                    <input type="text" name="tradeno">
                </p>
                <p>
                    <label>订单号：</label>
                    <input type="text" name="outtradeno">
                </p>
                <p>
                    <label>&nbsp;</label>
                    <input type="submit" class="button" value="提交">
                </p>
            </form>
            <hr/>
            <p class="faq">
                <a href="https://pay.weixin.qq.com/wiki/doc/api/native.php?chapter=9_1" target="_blank">* 查看接口 请求参数、响应参数</a>
            </p>
        </div>
        <div id="tabs-purchase-7">
            <form class="api-form" asp-controller="WeChatPay" asp-action="Close" method="post" target="_blank">
                <p>
                    <label>订单号：</label>
                    <input type="text" name="outTradeNo">
                </p>
                <p>
                    <label>&nbsp;</label>
                    <input type="submit" class="button" value="提交">
                </p>
            </form>
            <hr/>
            <p class="faq">
                <a href="https://pay.weixin.qq.com/wiki/doc/api/native.php?chapter=9_1" target="_blank">* 查看接口 请求参数、响应参数</a>
            </p>
        </div>
    </div>
</div>
<div id="tabs-api-alipay">
    <div id="tabs-purchase-alipay">
        <ul>
            <li>
                <a href="#tabs-purchase-1">扫码支付</a>
            </li>
        </ul>
        <div id="tabs-purchase-1">
            <form class="api-form" asp-controller="WeChatPay" asp-action="ScanPay" method="post" target="_blank">
                <p>
                    <label>订单号：</label>
                    <input type="text" name="out_trade_no" value="@DateTime.Now.ToString("yyyyMMddHHmmssfff")">
                </p>
                <p>
                    <label>订单描述：</label>
                    <input type="text" name="body" value="微信扫码支付测试">
                </p>
                <p>
                    <label>金额：</label>
                    <input type="text" name="total_amount" value="1" title="单位为分。">
                </p>
                <p>
                    <label>&nbsp;</label>
                    <input type="submit" class="button" value="提交">
                </p>
            </form>
            <hr/>
            <p class="faq">
                <a href="https://pay.weixin.qq.com/wiki/doc/api/native.php?chapter=9_1" target="_blank">* 查看接口 请求参数、响应参数</a>
            </p>
        </div>
    </div>
    </div>
</div>


@section Scripts {
    <script src="~/demo.js" asp-append-version="true"></script>
}

@section Styles {
    <link rel="stylesheet" href="~/demo.css" asp-append-version="true">
}